Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 20c0e1076765248d44ee9563f51944473e809b68


Parents : 7618300
Author : Sudo-Ivan <ivan@quad4.io>
Signature : Signature validation error
Date : 2026-01-02T09:31:11-06:00

chore(Taskfile): add tasks for setting up Python environment and linting

Changes

1 files changed, 46 insertions(+), 2 deletions(-)

M Taskfile.yml +46 -2

Diff

diff --git a/Taskfile.yml b/Taskfile.yml
index a7fdb33c..3f27c4c8 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -50,6 +50,32 @@ tasks:
cmds:
- task --list
+ setup-uv:
+ desc: Install uv
+ cmds:
+ - curl -LsSf https://astral.sh/uv/install.sh | sh
+
+ setup-python-env:
+ desc: Setup Python environment using uv
+ cmds:
+ - uv venv
+ - uv pip install ruff poetry
+
+ lint-python:
+ desc: Lint Python code using ruff
+ cmds:
+ - uv run ruff check .
+ - uv run ruff format --check .
+
+ lint-frontend:
+ desc: Lint frontend code
+ cmds:
+ - "{{.NPM}} run lint"
+
+ lint:
+ desc: Run all linters
+ deps: [lint-frontend, lint-python]
+
install:
desc: Install all dependencies (installs node modules and python deps)
deps: [node_modules, python]
@@ -109,6 +135,24 @@ tasks:
- "{{.NPM}} run electron-postinstall"
- "{{.NPM}} run dist -- --win portable"
+ build-electron-linux:
+ desc: Build Linux Electron app with prebuilt backend
+ deps: [build-frontend]
+ cmds:
+ - "{{.NPM}} run electron-postinstall"
+ - "{{.NPM}} run build-backend"
+ - "{{.NPM}} run dist -- --linux AppImage"
+ - "{{.NPM}} run dist -- --linux deb"
+
+ build-electron-windows:
+ desc: Build Windows Electron apps (portable and installer)
+ deps: [build-frontend]
+ cmds:
+ - "{{.NPM}} run electron-postinstall"
+ - "{{.NPM}} run build-backend"
+ - "{{.NPM}} run dist -- --win portable"
+ - "{{.NPM}} run dist -- --win nsis"
+
dist:
desc: Build distribution (defaults to AppImage)
cmds:
@@ -149,8 +193,8 @@ tasks:
fix:
desc: Format and fix linting issues (Python and frontend)
cmds:
- - "{{.PYTHON}} -m poetry run ruff format ./"
- - "{{.PYTHON}} -m poetry run ruff check --fix ./"
+ - uv run ruff format ./
+ - uv run ruff check --fix ./
- "{{.NPM}} run format"
- "{{.NPM}} run lint:fix"


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────